package com.cc.mapper;

import com.cc.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface userMapper {

    public User login(@Param("id") String id,@Param("password")String password);

    List<User> findByPage(@Param("from") Integer from, @Param("pageSize") Integer pageSize);
    public int save (User user);
    public int delete(String id);
    public int update(User user);
    public int total();
    public User selectByid(String id);
}

